package com.jack.xiaoer.validator.annotation;

import com.jack.xiaoer.validator.custom.LoginTypeValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by Jackaroo Zhang on 2018/12/6.
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = LoginTypeValidator.class)
public @interface LoginType {

    String message();

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };

}
